对象(图像)到另一个对象(字节)的三层(3层)转换 [英] convert of the object (image) to another object (Byte) in three layers(3-tier)

查看:82
本文介绍了对象(图像)到另一个对象(字节)的三层(3层)转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

转换可以在第一层(UI)做什么?

Conversions can be done in the first layer ( UI ) ?

推荐答案

有关这类操作我个人创建的 utils的 类/命名空间根据项目命名 myProjectNamespace.Utils )。 A ststic 公共静态成员转换,格式化,计算...

For these kind of operations I personally create a Utils class/namespace under project namespace (myProjectNamespace.Utils). A ststic class with public static members for conversions, formatting, calculations...

将这个类 BLL (业务逻辑层)的大部分时间,但有时你需要不同的 utils的的不同的层次。

Put this class in BLL (Business Logic Layer) most of the time but sometimes you need different Utils for different layers.

这篇关于对象(图像)到另一个对象(字节)的三层(3层)转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆